package com.czk.springcloud.fallBackClass;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.czk.springcloud.entity.CommonResult;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/5/13 11:59
 */
public class FallBackClass {
    public static CommonResult handlerException(@PathVariable("id") Long id,Throwable throwable) {
        return new CommonResult(444, "按客户自定义的global exception=====1");
    }
    public static CommonResult handlerException2(@PathVariable("id") Long id,Throwable throwable) {
        return new CommonResult(444, "按客户自定义的global exception======2");
    }
}
